import service from '@/utils/request'

// @Tags BcProject
// @Summary 创建bcProject表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcProject true "创建bcProject表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcProject/createBcProject [post]
export const createBcProject = (data) => {
  return service({
    url: '/bcProject/createBcProject',
    method: 'post',
    data
  })
}

// @Tags BcProject
// @Summary 删除bcProject表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcProject true "删除bcProject表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcProject/deleteBcProject [delete]
export const deleteBcProject = (data) => {
  return service({
    url: '/bcProject/deleteBcProject',
    method: 'delete',
    data
  })
}

// @Tags BcProject
// @Summary 批量删除bcProject表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcProject表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcProject/deleteBcProject [delete]
export const deleteBcProjectByIds = (data) => {
  return service({
    url: '/bcProject/deleteBcProjectByIds',
    method: 'delete',
    data
  })
}

// @Tags BcProject
// @Summary 更新bcProject表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcProject true "更新bcProject表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcProject/updateBcProject [put]
export const updateBcProject = (data) => {
  return service({
    url: '/bcProject/updateBcProject',
    method: 'put',
    data
  })
}

// @Tags BcProject
// @Summary 用id查询bcProject表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcProject true "用id查询bcProject表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcProject/findBcProject [get]
export const findBcProject = (params) => {
  return service({
    url: '/bcProject/findBcProject',
    method: 'get',
    params
  })
}

// @Tags BcProject
// @Summary 分页获取bcProject表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcProject表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcProject/getBcProjectList [get]
export const getBcProjectList = (params) => {
  return service({
    url: '/bcProject/getBcProjectList',
    method: 'get',
    params
  })
}
